package org.rvk.vms.dal.model.search;

import java.io.Serializable;

/**
 * Generic contract for pagination of any model.
 *
 * @author Ashish Kumar Sinha <aksinha.mail@gmail.com>
 */
public interface IPageable extends Serializable {

    /**
     * to get the current page number
     *
     * @return - current page number
     */
    public int getPage();

    /**
     * to get the total number of records available with the
     * @return   - the total number of records
     */
    public long getTotal();

    /**
     * to get the current page size specified in the SearchInput.
     * @return  - the page size specified in the search input.
     */
    public int getPageSize();

}
